<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>


	<?php 
		//print_r ($this->input->post());
		
		echo form_fieldset('Registrasi ITB Senior Programming Contest 2011',array('class' => 'form'));
		
		echo form_open('register_spc/validasi');
		//$req= "<span id='req'> * </span>";
		$req = '';
		echo form_label('Nama tim'.$req.'<span id="reg_rule"> minimal 4 karakter, maksimal 20 karakter.</span>','spc_nama_tim');
		echo form_error('spc_nama_tim');
		echo form_input('spc_nama_tim', $this->input->post("spc_nama_tim"));
		
		echo form_label('Nama perguruan tinggi'.$req,'spc_nama_pt');
		echo form_error('spc_nama_pt');
		echo form_input('spc_nama_pt', $this->input->post("spc_nama_pt"));
		
		echo form_label('Alamat perguruan tinggi'.$req,'spc_alamat_pt');
		echo form_error('spc_alamat_pt');
		echo form_textarea('spc_alamat_pt',$this->input->post("spc_alamat_pt"));
		
		echo form_label('Nama lengkap anggota tim #1 (ketua tim)'.$req,'spc_nama_1');
		echo form_error('spc_nama_1');
		echo form_input('spc_nama_1', $this->input->post("spc_nama_1"));
		
		echo form_label('Nomor ponsel ketua tim'.$req,'spc_nohp');
		echo form_error('spc_nohp');
		echo form_input('spc_nohp', $this->input->post("spc_nohp"));
		
		echo form_label('Alamat email ketua tim'.$req,'spc_email');
		echo form_error('spc_email');
		echo form_input('spc_email', $this->input->post("spc_email"));
				
		echo form_label('Nama lengkap anggota tim #2','spc_nama_2');
		echo form_error('spc_nama_2');
		echo form_input('spc_nama_2', $this->input->post("spc_nama_2"));
		
		echo form_label('Nama lengkap anggota tim #3','spc_nama_3');
		echo form_error('spc_nama_3');
		echo form_input('spc_nama_3', $this->input->post("spc_nama_3"));
		
		echo form_label('Nama lengkap dosen pembimbing','spc_pembimbing');
		echo form_error('spc_pembimbing');
		echo form_input('spc_pembimbing', $this->input->post("spc_pembimbing"));
		
		
		//captcha
		echo form_label('Kode verifikasi','kode_verifikasi');		
		echo '<div class="center">';
		echo $image;
		echo '</div><div class="center">Masukan kode verifikasi diatas.</div>';
		echo form_error('kode_verifikasi');
		echo form_input('kode_verifikasi', '');
		
		//DISESUAIKAN
		$link_peraturan = '../../itbspc_peraturan.php';
		
		$agreement='<p class="content">Sebagai prasyarat pendaftaran ITB Senior Programming Contest 2011, saya telah membaca dan menyetujui ';
		$agreement.=anchor_popup($link_peraturan,'peraturan dan regulasi ITB Senior Programming Contest 2011', 
					array ('title' => 'Peraturan dan Regulasi ITB Senior Programming Contest 2011', 'alt' => 'Peraturan dan Regulasi ITB Senior Programming Contest 2011'));
		$agreement.='. Sanksi diskualifikasi akan saya terima, jika saya melanggar peraturan dan regulasi ITB Senior Programming Contest 2011. Keputusan ini sepenuhnya saya buat secara sadar dan tanpa paksaan.<p>';
		echo form_label('Peraturan dan Regulasi','agreement');	
		echo $agreement;		
		echo form_error('spc_agreement');
		echo '<div class="center">';
		echo form_checkbox(array(
				'name'        => 'spc_agreement',
				'id'          => 'spc_agreement',
				'value'       => TRUE,
				'checked'     => FALSE,
				));
		echo ' Saya setuju.';
		echo '</div>';
		
		echo form_submit(array(
				'name' => 'daftar',
				'class' => 'submit')
						, 'Daftar');
		
		echo form_close();
		
		echo form_fieldset_close(); 
	
	?>